{% include file="index.header.tpl.php" %}
{% include file="index.left.tpl.php" %}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
 					{%foreach from=$appoint_lists key=key item=value%}
						<a href="index.php?a=num.list&class_id={%$value.class_id%}" {%if $value.class_id==$class_id%} class="btn btn-primary" {%else%} class="btn btn-default"{%/if%}>{%$value.class_name%}安排座号</a>
					{%/foreach%}  
                </div>
                   <div class="box-body">
                        <table class="table table-bordered table-striped" id="mytable">
                                <thead>
                                    <tr style="background-color:#a273ff;">
                                        <td>班级名称</td>
                                        <td>学号</td>
										<td>姓名</td>
										<td width="20%">座号</td>
                                    </tr>
                                </thead>
                                <tbody>
								{%foreach from=$student_lists key=key item=value%}
                                    <tr>
									    <td>{%$value.class_name%}</td>
                                        <td>{%$value.student_no%}</td>
										<td>{%$value.student_name%}</td>
										<td>
										<input type="text" value="{%$value.student_seat%}" style="width:80%" name="student_num_{%$value.student_id%}[]"></td>
										
                                    </tr>	
                          	    {%/foreach%}
                            </tbody>
                        </table>                     
				   </div><!--box-body -->
                     <div class="box-footer text-center">
						 
				         <button type="submit" class="btn btn-primary"> 保 存</button>
				   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{% include file="index.footer.tpl.php" %}
 <script>
  $(function() {
    $( "#time" ).datepicker({
    });
  });
  </script>
